<%@ page import="institutional.Subject" %>



			<div class="control-group fieldcontain ${hasErrors(bean: subjectInstance, field: 'name', 'error')} ">
				<label for="name" class="control-label"><g:message code="subject.name.label" default="Name" /></label>
				<div class="controls">
					<g:textField name="name" value="${subjectInstance?.name}"/>
					<span class="help-inline">${hasErrors(bean: subjectInstance, field: 'name', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: subjectInstance, field: 'credits', 'error')} required">
				<label for="credits" class="control-label"><g:message code="subject.credits.label" default="Credits" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="credits" required="" value="${subjectInstance.credits}"/>
					<span class="help-inline">${hasErrors(bean: subjectInstance, field: 'credits', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: subjectInstance, field: 'hoursPerWeek', 'error')} required">
				<label for="hoursPerWeek" class="control-label"><g:message code="subject.hoursPerWeek.label" default="Hours Per Week" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="hoursPerWeek" required="" value="${subjectInstance.hoursPerWeek}"/>
					<span class="help-inline">${hasErrors(bean: subjectInstance, field: 'hoursPerWeek', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: subjectInstance, field: 'code', 'error')} required">
				<label for="code" class="control-label"><g:message code="subject.code.label" default="Code" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="code" required="" value="${subjectInstance.code}"/>
					<span class="help-inline">${hasErrors(bean: subjectInstance, field: 'code', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: subjectInstance, field: 'department', 'error')} required">
				<label for="department" class="control-label"><g:message code="subject.department.label" default="Department" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:select id="department" name="department.id" from="${institutional.Department.list()}" optionKey="id" required="" value="${subjectInstance?.department?.id}" class="many-to-one"/>
					<span class="help-inline">${hasErrors(bean: subjectInstance, field: 'department', 'error')}</span>
				</div>
			</div>

